const express = require('express')
    // 创建路由对象
const router = express.Router()
    // 导入用户路由处理函数模块
const citylistHandler = require('../router_handler/city')
const { reg_editcity_schema } = require('../schema/manager')
const expressJoi = require('@escook/express-joi')
router.get('/city', citylistHandler.getCityList)

//根据用户id查询用户信息
router.get('/citys/:id', citylistHandler.searchCityById)

//编辑用户
router.put("/citys/:id", expressJoi(reg_editcity_schema), citylistHandler.editCityById)

module.exports = router